﻿using B.S.GridManager.Api.Read.Dtos;
using B.S.GridManager.ErrorCode;
using MediatR;

namespace B.S.GridManager.Api.Read.Application.Command.PhysicalGrid
{
    /// <summary>
    /// 查询物理网格分页列表的命令
    /// </summary>
    public class GetPhysicalGridCommand:IRequest<ApiPaging<PhysicalGridDto>>
    {
        //需求里有两个条件,一个是网格名称,另一个是所属区域名称

        /// <summary>
        /// 区域名称
        /// </summary>
        public string? AreaName { get; set; }
        /// <summary>
        /// 网格名称
        /// </summary>
        public string? GirdName { get; set; }
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 2;

    }
}
